package com.hzncc.flowable_diboot.payment.vo;

import com.diboot.core.binding.annotation.*;
import com.diboot.tenant.entity.IamTenant;
import com.hzncc.flowable_diboot.payment.entity.PaymentCertItem;
import com.hzncc.flowable_diboot.payment.entity.PaymentRegister;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
* 回款凭证 VO定义
* @author MyName
* @version 1.0
* @date 2024-10-25
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class PaymentCertDetailVO extends PaymentCertListVO  {
private static final long serialVersionUID = 1195154026329966666L;

    /**
    * 租户 关联信息
    */
    @BindField(entity = IamTenant.class, field = "name", condition = "this.tenant_id = id")
    private String tenantIdLabel;

    /**
     * 费用报销单
     */
    @BindEntityList(entity = PaymentCertItem.class, condition = "this.id = payment_cert_id",deepBind = true)
    private List<PaymentCertItemListVO> paymentCertItemList;


}